﻿using MiniFox.Components;
using MiniFox.Infrastructure;
using MiniFox.Platform.Models;
using MiniFox.Platform.Services;

namespace MiniFox.Platform
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister, SpareComponent(typeof(PinCodeService))]
    public interface IPinCodeService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="signName"></param>
        /// <param name="ipAddress"></param>
        /// <returns></returns>
        PincodeContext CreatePincodeContext(string signName, string ipAddress);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="ticket"></param>
        /// <param name="code"></param>
        /// <param name="ipAddress"></param>
        /// <returns></returns>
        bool MatchPinCode(Ticket ticket, string code, string ipAddress);
    }
}